package com.cxria.pattern.proxy

IGamePlayer player = new GamePlayer('张三')

IGamePlayer proxy = new GamePlayerProxy(player)

println "开始时间是: 2018-8-8 10:00"

proxy.login('zhangsan', 'password')

proxy.killBoss()

proxy.upgrade()

println "结束时间是: 2018-8-9 18:58"